package pers.bc.utils.yonyou;

import nc.bs.logging.Logger;
import nc.starter.ui.NCLauncher;

public class NCStarterClient
{ 
    
    public static void main(String[] args)
    {
        org.springframework.util.StopWatch watch = new org.springframework.util.StopWatch();
        watch.start();
        long logTraceId = System.currentTimeMillis();
        try
        {
            
            System.err.println(getYonYouStr().toString());
            System.err.println("NC重量端开始启动........");
            System.setProperty("sun.swing.enableImprovedDragGesture", "");
            NCLauncher.main(args);
            watch.stop();
            //System.err.println(LoggerUtil.getBeautyWomanStr().toString());
            System.err.println(String.format("[{%s}][1/7]NC重量端启动,耗时:{%s}ms", logTraceId, watch.getLastTaskTimeMillis()));
            
        }
        catch (Throwable e)
        {
            Logger.error(e.getMessage(), e);
           // System.err.println(LoggerUtil.getDangerStr().toString());
            System.err.println(String.format("[{%s}][1/7]NC重量端启动异常：,耗时:{%s}ms\r\n异常：{%s}", 
                logTraceId, watch.getLastTaskTimeMillis()));
        }
    }
    public static StringBuffer getYonYouStr( )
    {
        StringBuffer yonyouStr = new StringBuffer();
        yonyouStr.append(CRLF);
        yonyouStr.append(" __     ______  _   ___     ______  _    _   ").append(CRLF);
        yonyouStr.append(" \\ \\   / / __ \\| \\ | \\ \\   / / __ \\| |  | |  ").append(CRLF);
        yonyouStr.append("  \\ \\_/ / |  | |  \\| |\\ \\_/ / |  | | |  | |  ").append(CRLF);
        yonyouStr.append("   \\   /| |  | | . ` | \\   /| |  | | |  | |  ").append(CRLF);
        yonyouStr.append("    | | | |__| | |\\  |  | | | |__| | |__| |  ").append(CRLF);
        yonyouStr.append("    |_|  \\____/|_| \\_|  |_|  \\____/ \\____/   ").append(CRLF);
        yonyouStr.append("                                             ").append(CRLF);
        yonyouStr.append("                                             ").append(CRLF);
        yonyouStr.append(CRLF);

        return yonyouStr;
    }
    

    static String CRLF = "\r\n";
    
}
